package demo1;

public class Test {

    public static void func(Animal animal){
        animal.eat();
    }

    public static void main(String[] args) {

    }
    public static void main1(String[] args) {
        Animal animal=new Dog("旺财",15);
        animal.eat();
    }
}
